const icons = []
const modules = import.meta.glob('./../../assets/icons/svg/*.svg')
for (const path in modules) {
  let p = path.split('assets/icons/svg/')[1].split('.svg')[0]
  p = capitalizeFirstLetter(p)
  icons.push(p)
}
function capitalizeFirstLetter(string) {
  if (!string) return '' // 如果字符串为空，返回空字符串
  return string.charAt(0).toUpperCase() + string.slice(1)
}
export default icons
